import 'package:ls_work/net/response/response_data.dart';

class FoodMenuList extends BaseListData{
  FoodMenuBean? bean;
  CaptionBean? caption;

  FoodMenuList({this.bean, this.caption});

  FoodMenuList.fromJson(Map<String, dynamic> json) {    
    this.bean = json['bean'] != null ? FoodMenuBean.fromJson(json['bean']) : null;
    // this.caption = json['caption'] != null ? CaptionBean.fromJson(json['caption']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.bean != null) {
      data['bean'] = this.bean?.toJson();
    }
    // if (this.caption != null) {
    //   data['caption'] = this.caption.toJson();
    // }
    return data;
  }

}

class FoodMenuBean {
  String? cuisine;
  String? name;
  String? avoid;
  String? dietary;
  num? fileId;
  String? carbohydrate;
  String? fat;
  String? protein;
  String? heat;
  String? createdBy;
  String? createdDate;
  String? updatedBy;
  String? updatedDate;
  double? price;
  int? flag;
  String? timeRange;
  int? branchId;
  int? tenantId;
  int? saasId;
  int? id;

  FoodMenuBean({this.cuisine, this.name, this.avoid, this.dietary, this.fileId, this.carbohydrate, this.fat, this.protein, this.heat, this.createdBy, this.createdDate, this.updatedBy, this.updatedDate, this.price, this.flag, this.timeRange, this.branchId, this.tenantId, this.saasId, this.id});

  FoodMenuBean.fromJson(Map<String, dynamic> json) {
    this.cuisine = json['cuisine'];
    this.name = json['name'];
    this.avoid = json['avoid'];
    this.dietary = json['dietary'];
    this.fileId = json['fileId'];
    this.carbohydrate = json['carbohydrate'];
    this.fat = json['fat'];
    this.protein = json['protein'];
    this.heat = json['heat'];
    this.createdBy = json['createdBy'];
    this.createdDate = json['createdDate'];
    this.updatedBy = json['updatedBy'];
    this.updatedDate = json['updatedDate'];
    this.price = json['price'];
    this.flag = json['flag'];
    this.timeRange = json['timeRange'].toString();
    this.branchId = json['branchId'];
    this.tenantId = json['tenantId'];
    this.saasId = json['saasId'];
    this.id = json['id'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['cuisine'] = this.cuisine;
    data['name'] = this.name;
    data['avoid'] = this.avoid;
    data['dietary'] = this.dietary;
    data['fileId'] = this.fileId;
    data['carbohydrate'] = this.carbohydrate;
    data['fat'] = this.fat;
    data['protein'] = this.protein;
    data['heat'] = this.heat;
    data['createdBy'] = this.createdBy;
    data['createdDate'] = this.createdDate;
    data['updatedBy'] = this.updatedBy;
    data['updatedDate'] = this.updatedDate;
    data['price'] = this.price;
    data['flag'] = this.flag;
    data['timeRange'] = this.timeRange;
    data['branchId'] = this.branchId;
    data['tenantId'] = this.tenantId;
    data['saasId'] = this.saasId;
    data['id'] = this.id;
    return data;
  }
}

class CaptionBean {
  String? flag;
  String? dietary;
  String? timeRange;

  CaptionBean({this.flag, this.dietary, this.timeRange});

  CaptionBean.fromJson(Map<String, dynamic> json) {    
    this.flag = json['flag'];
    this.dietary = json['dietary'];
    this.timeRange = json['timeRange'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['flag'] = this.flag;
    data['dietary'] = this.dietary;
    data['timeRange'] = this.timeRange;
    return data;
  }
}
